import D3ImgUrl from "../components/assets/D3.png";

import P300ImgUrl from "../components/assets/P300.png";
import P2211ImgUrl from "../components/assets/P221-1.png";
import P2212ImgUrl from "../components/assets/P221-2.png";
import P200ImgUrl from "../components/assets/P200.png";

import D300ImgUrl from "../components/assets/D300.png";
import D301ImgUrl from "../components/assets/D301.png";
import D220ImgUrl from "../components/assets/D220.png";

import DB2ImgUrl from "../components/assets/db2.png";
import DB4ImgUrl from "../components/assets/db4.png";

import C21ImgUrl from "../components/assets/c2-1.png";
import C22ImgUrl from "../components/assets/c2-2.png";

import PF1ImgUrl from "../components/assets/pf1.png";

import Q224ImgUrl from "../components/assets/Q224.png";

import D201ImgUrl from "../components/assets/D201.png";
import D202ImgUrl from "../components/assets/D202.png";
import D203ImgUrl from "../components/assets/D203.png";
import D221ImgUrl from "../components/assets/D221.png";
import D222ImgUrl from "../components/assets/D222.png";
import D223ImgUrl from "../components/assets/D223.png";

import Q400ImgUrl from "../components/assets/Q400.png";
import Q220ImgUrl from "../components/assets/Q220.png";
import Q221ImgUrl from "../components/assets/Q221.png";
import Q222ImgUrl from "../components/assets/Q222.png";
import Q223ImgUrl from "../components/assets/Q223.png";
import Q301ImgUrl from "../components/assets/Q301.png";
import Q302ImgUrl from "../components/assets/Q302.png";
import Q303ImgUrl from "../components/assets/Q303.png";

import P201ImgUrl from "../components/assets/P201.png";
import P202ImgUrl from "../components/assets/P202.png";
import P301ImgUrl from "../components/assets/P301.png";
import P302ImgUrl from "../components/assets/P302.png";
import P303ImgUrl from "../components/assets/P303.png";
import B200ImgUrl from "../components/assets/B200.png";
import B300ImgUrl from "../components/assets/B300.png";

// networkCamera
import BW45PWDI3ImgUrl from "../components/assets/1BW45PWDI3.png";
import BW45PWDI3SImgUrl from "../components/assets/1DW45PWDI3-S.png";

//simCam
import A400ImgUrl from "../components/assets/A400.png";
import A402ImgUrl from "../components/assets/A402.png";
import A220ImgUrl from "../components/assets/A220.png";
import A222ImgUrl from "../components/assets/A222.png";

const categories = [
  { id: "indoorCam", name: "Indoor Cam" },
  { id: "outdoorCam", name: "Outdoor Cam" },
  { id: "simCam", name: "4G Cam" },
  { id: "doorbell", name: "Doorbell" },
  { id: "dashCam", name: "Dash Cam" },
  { id: "petFeeder", name: "Pet Feeder" },
  { id: "networkCamera", name: "Network Camera" },
];

// 产品数据
function getProducts({ t }) {
  // 根据下面的products用t国际化替换name和description
  return [
    {
      id: "P400",
      name: t("products.P400.title"),
      description: t("products.P400.description"),
      category: "indoorCam",
      image: P300ImgUrl,
    },
    // {
    //   id: "P200",
    //   name: t("products.P200.title"),
    //   description: t("products.P200.description"),
    //   category: "indoorCam",
    //   image: P200ImgUrl,
    // },
    {
      id: "P221",
      name: t("products.P221.title"),
      description: t("products.P221.description"),
      category: "indoorCam",
      image: P2211ImgUrl,
    },
    {
      id: "D3",
      name: t("products.D3.title"),
      description: t("products.D3.description"),
      category: "indoorCam",
      image: D3ImgUrl,
    },
    {
      id: "P201",
      name: t("products.P201.title"),
      description: t("products.P201.description"),
      category: "indoorCam",
      image: P201ImgUrl,
    },
    {
      id: "P202",
      name: t("products.P202.title"),
      description: t("products.P202.description"),
      category: "indoorCam",
      image: P202ImgUrl,
    },
    {
      id: "P301",
      name: t("products.P301.title"),
      description: t("products.P301.description"),
      category: "indoorCam",
      image: P301ImgUrl,
    },
    {
      id: "P302",
      name: t("products.P302.title"),
      description: t("products.P302.description"),
      category: "indoorCam",
      image: P302ImgUrl,
    },
    {
      id: "P303",
      name: t("products.P303.title"),
      description: t("products.P303.description"),
      category: "indoorCam",
      image: P303ImgUrl,
    },
    {
      id: "B200",
      name: t("products.B200.title"),
      description: t("products.B200.description"),
      category: "indoorCam",
      image: B200ImgUrl,
    },
    {
      id: "B300",
      name: t("products.B300.title"),
      description: t("products.B300.description"),
      category: "indoorCam",
      image: B300ImgUrl,
    },
    // outdoorCam
    {
      id: "Q400",
      name: t("products.Q400.title"),
      description: t("products.Q400.description"),
      category: "outdoorCam",
      image: Q400ImgUrl,
    },
    {
      id: "Q220",
      name: t("products.Q220.title"),
      description: t("products.Q220.description"),
      category: "outdoorCam",
      image: Q220ImgUrl,
    },
    // {
    //   id: "D300",
    //   name: t("products.D300.title"),
    //   description: t("products.D300.description"),
    //   category: "outdoorCam",
    //   image: D300ImgUrl,
    // },
    // {
    //   id: "D220",
    //   name: t("products.D220.title"),
    //   description: t("products.D220.description"),
    //   category: "outdoorCam",
    //   image: D220ImgUrl,
    // },
    {
      id: "Q221",
      name: t("products.Q221.title"),
      description: t("products.Q221.description"),
      category: "outdoorCam",
      image: Q221ImgUrl,
    },
    {
      id: "Q222",
      name: t("products.Q222.title"),
      description: t("products.Q222.description"),
      category: "outdoorCam",
      image: Q222ImgUrl,
    },
    {
      id: "Q223",
      name: t("products.Q223.title"),
      description: t("products.Q223.description"),
      category: "outdoorCam",
      image: Q223ImgUrl,
    },
    {
      id: "Q301",
      name: t("products.Q301.title"),
      description: t("products.Q301.description"),
      category: "outdoorCam",
      image: Q301ImgUrl,
    },
    {
      id: "Q302",
      name: t("products.Q302.title"),
      description: t("products.Q302.description"),
      category: "outdoorCam",
      image: Q302ImgUrl,
    },
    {
      id: "Q303",
      name: t("products.Q303.title"),
      description: t("products.Q303.description"),
      category: "outdoorCam",
      image: Q303ImgUrl,
    },
    // {
    //   id: "D301",
    //   name: t("products.D301.title"),
    //   description: t("products.D301.description"),
    //   category: "outdoorCam",
    //   image: D301ImgUrl,
    // },
    {
      id: "Q224",
      name: t("products.Q224.title"),
      description: t("products.Q224.description"),
      category: "outdoorCam",
      image: Q224ImgUrl,
    },
    //4G Cam
    {
      id: "D300",
      name: t("products.D300.title"),
      description: t("products.D300.description"),
      category: "simCam",
      image: D300ImgUrl,
    },
    {
      id: "D220",
      name: t("products.D220.title"),
      description: t("products.D220.description"),
      category: "simCam",
      image: D220ImgUrl,
    },
    {
      id: "D201",
      name: t("products.D201.title"),
      description: t("products.D201.description"),
      category: "simCam",
      image: D201ImgUrl,
    },
    {
      id: "D202",
      name: t("products.D202.title"),
      description: t("products.D202.description"),
      category: "simCam",
      image: D202ImgUrl,
    },
    {
      id: "D203",
      name: t("products.D203.title"),
      description: t("products.D203.description"),
      category: "simCam",
      image: D203ImgUrl,
    },
    {
      id: "D221",
      name: t("products.D221.title"),
      description: t("products.D221.description"),
      category: "simCam",
      image: D221ImgUrl,
    },
    {
      id: "D222",
      name: t("products.D222.title"),
      description: t("products.D222.description"),
      category: "simCam",
      image: D222ImgUrl,
    },
    {
      id: "D223",
      name: t("products.D223.title"),
      description: t("products.D223.description"),
      category: "simCam",
      image: D223ImgUrl,
    },

    {
      id: "A220",
      name: t("products.A220.title"),
      description: t("products.A220.description"),
      category: "simCam",
      image: A220ImgUrl,
    },
    {
      id: "A222",
      name: t("products.A222.title"),
      description: t("products.A222.description"),
      category: "simCam",
      image: A222ImgUrl,
    },
    {
      id: "A400",
      name: t("products.A400.title"),
      description: t("products.A400.description"),
      category: "simCam",
      image: A400ImgUrl,
    },
    {
      id: "A402",
      name: t("products.A402.title"),
      description: t("products.A402.description"),
      category: "simCam",
      image: A402ImgUrl,
    },
    // doorbell
    {
      id: "DB2",
      name: t("products.DB2.title"),
      description: t("products.DB2.description"),
      category: "doorbell",
      image: DB2ImgUrl,
    },
    {
      id: "DB4",
      name: t("products.DB4.title"),
      description: t("products.DB4.description"),
      category: "doorbell",
      image: DB4ImgUrl,
    },
    // dashCam
    {
      id: "C2",
      name: t("products.C2.title"),
      description: t("products.C2.description"),
      category: "dashCam",
      image: C21ImgUrl,
    },
    // pet feeder
    {
      id: "PF1",
      name: t("products.PF1.title"),
      description: t("products.PF1.description"),
      category: "petFeeder",
      image: PF1ImgUrl,
    },
    //networkCamera
    {
      id: "BW45PWDI3",
      name: t("products.BW45PWDI3.title"),
      description: t("products.BW45PWDI3.description"),
      category: "networkCamera",
      image: BW45PWDI3ImgUrl,
    },
    {
      id: "BW45PWDI3S",
      name: t("products.BW45PWDI3S.title"),
      description: t("products.BW45PWDI3S.description"),
      category: "networkCamera",
      image: BW45PWDI3SImgUrl,
    },
  ];
}

function getProductDetailMap({ t }) {
  return {
    D300: {
      title: t("products.D300.title"),
      description: t("products.D300.description"),
      details: t("products.D300.details"),
      images: [
        {
          src: D300ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
      ],
    },
    D220: {
      title: t("products.D220.title"),
      description: t("products.D220.description"),
      details: t("products.D220.details"),
      images: [
        {
          src: D220ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
      ],
    },
    D301: {
      title: t("products.D301.title"),
      description: t("products.D301.description"),
      details: t("products.D301.details"),
      images: [
        {
          src: D301ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
      ],
    },
    D3: {
      title: t("products.D3.title"),
      description: t("products.D3.description"),
      details: t("products.D3.details"),
      images: [
        {
          src: D3ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
      ],
    },
    DB2: {
      title: t("products.DB2.title"),
      description: t("products.DB2.description"),
      details: t("products.DB2.details"),
      images: [
        {
          src: DB2ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
      ],
    },
    DB4: {
      title: t("products.DB4.title"),
      description: t("products.DB4.description"),
      details: t("products.DB4.details"),
      images: [
        {
          src: DB4ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
      ],
    },
    P400: {
      title: t("products.P400.title"),
      description: t("products.P400.description"),
      details: t("products.P400.details"),
      images: [
        {
          src: P300ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
      ],
    },
    P200: {
      title: t("products.P200.title"),
      description: t("products.P200.description"),
      details: t("products.P200.details"),
      images: [
        {
          src: P200ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
      ],
    },
    P221: {
      title: t("products.P221.title"),
      description: t("products.P221.description"),
      details: t("products.P221.details"),
      images: [
        {
          src: P2211ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
        {
          src: P2212ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
      ],
    },
    Q224: {
      title: t("products.Q224.title"),
      description: t("products.Q224.description"),
      details: t("products.Q224.details"),
      images: [
        {
          src: Q224ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
      ],
    },
    PF1: {
      title: t("products.PF1.title"),
      description: t("products.PF1.description"),
      details: t("products.PF1.details"),
      images: [
        {
          src: PF1ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
      ],
    },
    C2: {
      title: t("products.C2.title"),
      description: t("products.C2.description"),
      details: t("products.C2.details"),
      images: [
        {
          src: C21ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
        {
          src: C22ImgUrl,
          alt: "Home Security Wi-Fi Camera - Front view",
        },
      ],
    },
    // D201 D202 D203 D221 D222 D223
    D201: {
      title: t("products.D201.title"),
      description: t("products.D201.description"),
      details: t("products.D201.details"),
      images: [
        {
          src: D201ImgUrl,
        },
      ],
    },
    D202: {
      title: t("products.D202.title"),
      description: t("products.D202.description"),
      details: t("products.D202.details"),
      images: [{ src: D202ImgUrl }],
    },
    D203: {
      title: t("products.D203.title"),
      description: t("products.D203.description"),
      details: t("products.D203.details"),
      images: [{ src: D203ImgUrl }],
    },
    D221: {
      title: t("products.D221.title"),
      description: t("products.D221.description"),
      details: t("products.D221.details"),
      images: [{ src: D221ImgUrl }],
    },
    D222: {
      title: t("products.D222.title"),
      description: t("products.D222.description"),
      details: t("products.D222.details"),
      images: [{ src: D222ImgUrl }],
    },
    D223: {
      title: t("products.D223.title"),
      description: t("products.D223.description"),
      details: t("products.D223.details"),
      images: [{ src: D223ImgUrl }],
    },
    A220: {
      title: t("products.A220.title"),
      description: t("products.A220.description"),
      details: t("products.A220.details"),
      images: [{ src: A220ImgUrl }],
    },
    A222: {
      title: t("products.A222.title"),
      description: t("products.A222.description"),
      details: t("products.A222.details"),
      images: [{ src: A222ImgUrl }],
    },
    A400: {
      title: t("products.A400.title"),
      description: t("products.A400.description"),
      details: t("products.A400.details"),
      images: [{ src: A400ImgUrl }],
    },
    A402: {
      title: t("products.A402.title"),
      description: t("products.A402.description"),
      details: t("products.A402.details"),
      images: [{ src: A402ImgUrl }],
    },
    //Q400 Q220 Q221 Q222 Q223 Q301 Q302 Q303
    Q400: {
      title: t("products.Q400.title"),
      description: t("products.Q400.description"),
      details: t("products.Q400.details"),
      images: [{ src: Q400ImgUrl }],
    },
    Q220: {
      title: t("products.Q220.title"),
      description: t("products.Q220.description"),
      details: t("products.Q220.details"),
      images: [{ src: Q220ImgUrl }],
    },
    Q221: {
      title: t("products.Q221.title"),
      description: t("products.Q221.description"),
      details: t("products.Q221.details"),
      images: [{ src: Q221ImgUrl }],
    },
    Q222: {
      title: t("products.Q222.title"),
      description: t("products.Q222.description"),
      details: t("products.Q222.details"),
      images: [{ src: Q222ImgUrl }],
    },
    Q223: {
      title: t("products.Q223.title"),
      description: t("products.Q223.description"),
      details: t("products.Q223.details"),
      images: [{ src: Q223ImgUrl }],
    },
    Q301: {
      title: t("products.Q301.title"),
      description: t("products.Q301.description"),
      details: t("products.Q301.details"),
      images: [{ src: Q301ImgUrl }],
    },
    Q302: {
      title: t("products.Q302.title"),
      description: t("products.Q302.description"),
      details: t("products.Q302.details"),
      images: [{ src: Q302ImgUrl }],
    },
    Q303: {
      title: t("products.Q303.title"),
      description: t("products.Q303.description"),
      details: t("products.Q303.details"),
      images: [{ src: Q303ImgUrl }],
    },
    // P201 P202 P301 P302 P303 B200 B300
    P201: {
      title: t("products.P201.title"),
      description: t("products.P201.description"),
      details: t("products.P201.details"),
      images: [{ src: P201ImgUrl }],
    },
    P202: {
      title: t("products.P202.title"),
      description: t("products.P202.description"),
      details: t("products.P202.details"),
      images: [{ src: P202ImgUrl }],
    },
    P301: {
      title: t("products.P301.title"),
      description: t("products.P301.description"),
      details: t("products.P301.details"),
      images: [{ src: P301ImgUrl }],
    },
    P302: {
      title: t("products.P302.title"),
      description: t("products.P302.description"),
      details: t("products.P302.details"),
      images: [{ src: P302ImgUrl }],
    },
    P303: {
      title: t("products.P303.title"),
      description: t("products.P303.description"),
      details: t("products.P303.details"),
      images: [{ src: P303ImgUrl }],
    },
    B200: {
      title: t("products.B200.title"),
      description: t("products.B200.description"),
      details: t("products.B200.details"),
      images: [{ src: B200ImgUrl }],
    },
    B300: {
      title: t("products.B300.title"),
      description: t("products.B300.description"),
      details: t("products.B300.details"),
      images: [{ src: B300ImgUrl }],
    },
    // newwork camera
    BW45PWDI3: {
      title: t("products.BW45PWDI3.title"),
      description: t("products.BW45PWDI3.description"),
      details: t("products.BW45PWDI3.details"),
      images: [{ src: BW45PWDI3ImgUrl }],
    },
    BW45PWDI3S: {
      title: t("products.BW45PWDI3S.title"),
      description: t("products.BW45PWDI3S.description"),
      details: t("products.BW45PWDI3S.details"),
      images: [{ src: BW45PWDI3SImgUrl }],
    },
  };
}

export { categories, getProducts, getProductDetailMap };
